package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessVerificationUserMapper;
import com.hckjsec.cloud.domain.AppletsBusinessVerificationUser;
import com.hckjsec.cloud.service.IAppletsBusinessVerificationUserService;

/**
 * 身份核验用户Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-07
 */
@Service
public class AppletsBusinessVerificationUserServiceImpl implements IAppletsBusinessVerificationUserService 
{
    @Autowired
    private AppletsBusinessVerificationUserMapper appletsBusinessVerificationUserMapper;

    /**
     * 查询身份核验用户
     * 
     * @param deptName 身份核验用户ID
     * @return 身份核验用户
     */
    @Override
    public AppletsBusinessVerificationUser selectAppletsBusinessVerificationUserById(String deptName)
    {
        return appletsBusinessVerificationUserMapper.selectAppletsBusinessVerificationUserById(deptName);
    }

    /**
     * 查询身份核验用户列表
     * 
     * @param appletsBusinessVerificationUser 身份核验用户
     * @return 身份核验用户
     */
    @Override
    public List<AppletsBusinessVerificationUser> selectAppletsBusinessVerificationUserList(AppletsBusinessVerificationUser appletsBusinessVerificationUser)
    {
        return appletsBusinessVerificationUserMapper.selectAppletsBusinessVerificationUserList(appletsBusinessVerificationUser);
    }

    /**
     * 新增身份核验用户
     * 
     * @param appletsBusinessVerificationUser 身份核验用户
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessVerificationUser(AppletsBusinessVerificationUser appletsBusinessVerificationUser)
    {
        return appletsBusinessVerificationUserMapper.insertAppletsBusinessVerificationUser(appletsBusinessVerificationUser);
    }

    /**
     * 修改身份核验用户
     * 
     * @param appletsBusinessVerificationUser 身份核验用户
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessVerificationUser(AppletsBusinessVerificationUser appletsBusinessVerificationUser)
    {
        return appletsBusinessVerificationUserMapper.updateAppletsBusinessVerificationUser(appletsBusinessVerificationUser);
    }

    /**
     * 批量删除身份核验用户
     * 
     * @param deptNames 需要删除的身份核验用户ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessVerificationUserByIds(String[] deptNames)
    {
        return appletsBusinessVerificationUserMapper.deleteAppletsBusinessVerificationUserByIds(deptNames);
    }

    /**
     * 删除身份核验用户信息
     * 
     * @param deptName 身份核验用户ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessVerificationUserById(String deptName)
    {
        return appletsBusinessVerificationUserMapper.deleteAppletsBusinessVerificationUserById(deptName);
    }
}
